package com.magnificent.atlantis.client.data.user;

import com.magnificent.atlantis.client.ui.planner.PlannerData;

/**
 * User: Babanin
 * Date: Sep 27, 2009
 * Time: 11:39:07 AM
 */
public class UserContext {
    private static int userContextId = 0;
    public static final UserContext DEFAULT = new UserContext(null);

    private int id;
    private PlannerData plannerData;

    public UserContext(PlannerData plannerData) {
        this.id = userContextId++;
        this.plannerData = plannerData;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public PlannerData getPlannerData() {
        return plannerData;
    }

    public void setPlannerData(PlannerData plannerData) {
        this.plannerData = plannerData;
    }

    /* @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserContext that = (UserContext) o;

        if (id != that.id) return false;
        if (plannerData != null ? !plannerData.equals(that.plannerData) : that.plannerData != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (plannerData != null ? plannerData.hashCode() : 0);
        return result;
    }*/
}
